/*
							Copyright (C) 2010  Alourien Team
									
						This file is part of the Alourien Engine.

    The Alourien Engine is free software: you can redistribute it and/or modify
    it under the terms of the GNU Lesser General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    The Alourien Engine is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Lesser General Public License for more details.

    You should have received a copy of the GNU Lesser General Public License
    along with the Alourien Engine.  If not, see <http://www.gnu.org/licenses/>.
	
 *File Name: VectorMath.h
 *Programmer Name:Jose Castellano
 *Date of last update:10/7/2010
 *
 *Purpose:This Program is to create and Manipulate all the vectors 
 * that are needed for all the work that is used involving 
 * the vectors.
 *
 *Basic Info: This file includes the overloaded vector addition for 
 * both dimensions,and overloaded vector multiplication, overloaded
 * dot product,overloaded cross product. The headers that will be
 * required in this would be Vector2D and Vector3D.
 *
 *UPDATES:
 *1)Created the Program and documentation.
 *  Date:9/30/2010 Updater: Jose Castellano
 *
 *2)Fixed the documentation to the standard that
 *  we decided to use.
 *  Date:10/1/2010 Updater: Jose Castellano
 *
 *3) Added the actual code to our Engine namespace
 *   Date: 10/06/2010 Updater: Manuel Cuellar
 * 
 *4) Added the normalize methods to the program
 *	 Date: 10/07/2010 Updater: Jose Castellano
 *
 *
 */

#ifndef _VECTORMATH_H
#define _VECTORMATH_H 1

#include "Vector2D.h"
#include "Vector3D.h"

namespace Alourien
{
	class VectorMath
	{

	public:
		VectorMath(void);
		~VectorMath(void);

		//Finds the dot product of two vectors
		//Returns an float
		float DotProduct(Vector2D vector1, Vector2D vector2);

		//Overload of dotProduct, but with 3 Dimensional Vectors
		//Returns an float
		float DotProduct(Vector3D vector1, Vector3D vector2);

		//Finds the cross product of two vectors
		//Returns a 3 dimensional vector
		Vector3D CrossProduct(Vector3D vector1, Vector3D vector2);
		
		//Normalizes a vector to get the unit vector magnitude
	    //Uses the magnitude found from the pythagorean theorum
	    Vector2D NormalizeVector2D(Vector2D value, float magnitude);
	   
	    //Normalizes a vector to get the unit vector magnitude
	    //Uses the magnitude found from the pythagorean theorum
	    Vector3D NormalizeVector3D(Vector3D value, float magnitude);
	};
};

#endif